Skip to content

Set up ty in CI #61880

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Set up ty in CI #61880

wants to merge 2 commits into from

Conversation

tqa236
Copy link
Contributor

@tqa236 tqa236 commented Jul 16, 2025

Hello,

This PR sets up ty, a type checker developed by the creator of ruff, in CI.

I'm aware that ty is still in preview but there can be a couple of benefits in adding it now.

  • It's already very fast and can help us debug faster. mypy is quite slow and disrupts the coding flow.
  • The cost of setup is pretty cheap, as it's mostly similar to mypy and pyright. Currently I ignore all errors so that we can fix and enable them gradually, like the other linting and typing errors.
  • This also allows us to evaluate if/when ty can be a replacement of mypy and pyright.

Let me know what you think.

  • closes #xxxx (Replace xxxx with the GitHub issue number)
  • Tests added and passed if fixing a bug or adding a new feature
  • All code checks passed.
  • Added type annotations to new arguments/methods/functions.
  • Added an entry in the latest doc/source/whatsnew/vX.X.X.rst file if fixing a bug or adding a new feature.

@simonjayhawkins simonjayhawkins added CI Continuous Integration Typing type annotations, mypy/pyright type checking labels Jul 17, 2025
Copy link
Member

@mroeschke mroeschke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd be open to integrating ty once it's in beta. I'd like to see more stability in configuration options and rules first

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI Continuous Integration Typing type annotations, mypy/pyright type checking
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants